<?php

declare(strict_types=1);

namespace App\Model\Users;



use App\Model\Model;
use App\Traits\MysqlTrait;

/**
 * @property int $id 
 * @property int $uid 用户uid
 * @property int $industry_id 所属行业id
 * @property string $name 类目名称
 * @property string $icon 类目图标
 * @property string $remark 备注
 * @property int $type 类目类型，1：收入，2：支出
 * @property int $price 类目价格
 * @property int $is_del 是否删除，1：未删除，2：已删除
 * @property string $commission_rate 提点比例
 * @property \Carbon\Carbon $created_at 录入时间
 * @property \Carbon\Carbon $updated_at 更新时间
 */
class UserCategory extends Model
{

    use MysqlTrait;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'user_categories';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'uid', 'industry_id', 'name', 'icon', 'remark', 'type', 'price','is_del', 'commission_rate', 'created_at', 'updated_at'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'uid' => 'integer', 'industry_id' => 'integer', 'type' => 'integer', 'price' => 'integer','is_del' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
}
